import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.FileNotFoundException;


public class InputStreamDemo {
	
	public static void main(String[] args) throws IOException{
		
		InputStream in = new FileInputStream("D:\\workspace\\JavaProExample9\\src\\1.txt");
		byte[] b = new byte[4];
		
		int len =0;
		while((len = in.read(b))!= -1){
			for(int i=0;i<len;i++){
				System.out.println(len);
			}
		}
		System.out.println();
		
		
	}
	

}
